From: Jan Beulich Date: Tue, 1 Apr 2014 16:20:58 +0000 (+0200) Subject: include: fix Makefile for FreeBSD X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~5306^2~3 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=0e1eed0bea78f3c215e1ce8d9de264d62d927bb8;p=xen.git include: fix Makefile for FreeBSD Don't use non-standard extensions: - \t in bracket expressions - \+ in basic regular expressions Reported-by: Roger Pau Monné Signed-off-by: Jan Beulich Signed-off-by: Roger Pau Monné Acked-by: Keir Fraser --- diff --git a/xen/include/Makefile b/xen/include/Makefile index d6f0cf7f57..f7ccbc947a 100644 --- a/xen/include/Makefile +++ b/xen/include/Makefile @@ -76,10 +76,10 @@ compat/.xlat/%.h: compat/%.h compat/.xlat/%.lst $(BASEDIR)/tools/get-fields.sh M .PRECIOUS: compat/.xlat/%.lst compat/.xlat/%.lst: xlat.lst Makefile mkdir -p $(@D) - grep -v '^[ \t]*#' $< | sed -ne 's,@arch@,$(compat-arch-y),g' -e 's,[ \t]\+$*\.h[ \t]*$$,,p' >$@.new + grep -v '^[[:blank:]]*#' $< | sed -ne 's,@arch@,$(compat-arch-y),g' -re 's,[[:blank:]]+$*\.h[[:blank:]]*$$,,p' >$@.new $(call move-if-changed,$@.new,$@) -xlat-y := $(shell sed -ne 's,@arch@,$(compat-arch-y),g' -e 's,^[?!][ \t]\+[^ \t]\+[ \t]\+,,p' xlat.lst | uniq) +xlat-y := $(shell sed -ne 's,@arch@,$(compat-arch-y),g' -re 's,^[?!][[:blank:]]+[^[:blank:]]+[[:blank:]]+,,p' xlat.lst | uniq) xlat-y := $(filter $(patsubst compat/%,%,$(headers-y)),$(xlat-y)) compat/xlat.h: $(addprefix compat/.xlat/,$(xlat-y)) Makefile